Let "x" represent the number.
You have to subtract 12 from that number

Then, multiply the difference by -3

The result must be -54

From this expression, you can calculate the value of x:
First, distribute the multiplication on the parentheses term, that is, multiply both terms by -3:

Second, subtract 36 from both sides of the equal sign:

Third, divide both sides by -3

Peter's number is 30.