A bagel store prepares 4 bagels with cream cheese in 54 seconds and 12 bagels with cream cheese in 162 seconds. At this rate, how many seconds will it take to prepare 10 bagels with cream cheese?