The average of the four numbers, given in a particular order, is 48. The average of the first three numbers is 42, while the average of the last three numbers is 50. What is the average of the first and last numbers?