the school library had a used book sale. paperbacks were $2 each and hardcover books were $3 each. there were 54 paperbacks and 163 hardcover books sold.

Please help me, I have no idea how to do this we need to use BEDMAS to solve this. Can anyone help?