let [tex]x[/tex] be the number of fish Brett has and let [tex]x+5[/tex] be the number of fish Stephanie has.
[tex]x+(x+5)=31[/tex]
[tex]x+x+5=31\\\\2x+5=31\\\\2x=26\\\\x=13[/tex]
Brett has 13 fishes
[tex]x+5=31\\\\(13)+5=18[/tex]
Stephanie has 18 fishes
Verify
[tex]x+(x+5)=31\\\\13+(13+5)=31\\\\13+18=31\\\\31=31\\\\LS=RS[/tex]