How to get 3A + 5 = 3B + 5 from a = B?

How to get 3A + 5 = 3B + 5 from a = B?

a=b
3A = 3B (if the left and right sides of the equation are multiplied by a number that is not zero, the equation still holds)
3A + 5 = 3B + 5