Word Problems algebra

@AriHoresh
How do we write these types of questions?
I get very confused about these types.
Thank you.