Your classmate is starting a new fitness program. He is planning to ride his bicycle 50 minutes every day. He burns 5 calories per minute bicycling at 11 mph and 8.75 calories per minute bicycling at 15 mph. How long should he bicycle at each speed to burn 400 ​calories?

Let the time spent biking at 11 mph be x minutes and the time spent biking at 15 mph be y minutes.

According to the given information, the total time spent bicycling is 50 minutes, so we have the equation x + y = 50.
The number of calories burned at 11 mph is 5*x, and the number of calories burned at 15 mph is 8.75*y.
We want to burn 400 calories, so we have the equation 5*x + 8.75*y = 400.
Solving the system of equations x + y = 50 and 5*x + 8.75*y = 400, we find:
x = 28.57 minutes (approximately)
y = 21.43 minutes (approximately)

Therefore, he should bicycle at 11 mph for approximately 28.57 minutes and at 15 mph for approximately 21.43 minutes to burn 400 calories.