you write an equation to show 54 pupil in class,3 more boys than the number of girls

Let b be the number of boys, g be the number of girls.

"54 pupils in class"
b + g = 54

"3 more boys than girls"

b = g+3