A=A or a=a is an example of the reflexive property, it's like looking in a mirror of oneself, hence the name of the property.
Okay so your equation is going to be : 18= 5k + 3.25p
Consider,

. Let's say

then the problem reduces to

. (Do you understand this step?)
So then replacing a again with our definition we get,

.