How do you calculate percentage of two amounts?

The two examples below shows how to work out the percentages of two numbers:

45% of 57: 45 ÷ 100 × 57 = 25.65%

56% of 34: 56 ÷ 100 × 34 = 19.04%