The text says "However, if Mary buys more than 40 apples". But there is a test for specifically 40 apples. Please change the wording to 40 or more. It changes the if statement from "if apple_qty < 40" to "if apple_qty <= 40".
Took me a few minutes to realize why it was showing failed in the background check.