we know that
1) Originally ------> Matt had x marbles
2) Matt gave Kayla [tex]3/4[/tex] of the marbles
so
Now
Matt have
[tex]x-\frac{3}{4}x= \frac{1}{4}x[/tex]
Kayla have
[tex]\frac{3}{4}x[/tex]
3) Kayla returned [tex]1/3[/tex] of a jar's worth of marbles to the jar
so
Kayla returned------> [tex]\frac{1}{3}x[/tex]
Now
Matt have
[tex]\frac{1}{4}x+\frac{1}{3}x=\frac{3}{12}x+\frac{4}{12}x=\frac{7}{12}x[/tex]
therefore
the answer is
[tex]\frac{7}{12}[/tex]