• In my attempt for a correct solu...

Question related to mission Spaceship Purchase

 

In my attempt for a correct solution for this problem I returned the 'sellers' offer from the function, since my bid for 450 is greater than sellers offer for 400 it seems strange that the correct answer is 450 when the ship can be bought for 400 or am I missing something?