Maria has 19 hats.
Here we assume
b=beth
m=maria
Now the equation should be
2b+5=m
b+m=26
here we put m equation
So,
b + 2b + 5 = 26
3b = 21
b = 7
So, the hats should be = 26 - 7 = 19
Learn more about the twice here: https://brainly.com/question/24589864