An airplane had a total of 387 seats. The number of coach class seats is 2 more than 4 times the number of first class seats. How many of each type of seat are there on the plane?