315 students would answer "yes". If 42 out of 50 students answered yes, that'd be 84% (you can determine this by dividing 42/50). Once you've determined that part, you can multiply 375 by 0.84 (converting a percentage to a decimal), which would give you 315.
Please mark brainliest if this helped in any way, thank you! Have a great day! :)