A boy's mark for a test is 18 out of a total of 30 marks. If the
test had been marked out of 40 what would the boy's mark have
been?

Please help me, with explanation. Thank you<3