H=150m
P=190x
5=m+x
P=H+270
P stands for Polish 
H stands for Hungarian 
M stands for the time she can speak in H
X stands for the time she can speak in P
Plug in H and P 
190x=150m+270
5=m+x
Solve for X 
-m both sides 
X=-m+5
Plug in x 
190 (-m+5)=150m+270
Distribute
-190m+950=150m+270
+190m both sides 
950=340m+270
-270 both sides 
680=340m
÷340 both sides 
M=2 
5=x+2
-2 both sides 
X=3
She spoke 2 minutes in Hungarian and 3 minutes on Polish