Since the sum of the three angles in any triangle is \(180^{\circ}\), the sum of \(\angle A\) and \(\angle B\) must be smaller than \(180^{\circ}\).
This means\[\angle A + \angle B = 50^{\circ} + (3x+5)^{\circ} < 180^{\circ}\]
Using trial and error, we find that when \(x = 41\), \(3x+5 = 3(41)+5=128\), and that when \(x = 42\), \(3x+5 = 3(42)+5 = 131\). If \(\angle B = 128^{\circ}\) then the two angles add to \(178^{\circ}\) which is small enough. If \(\angle B = 131^{\circ}\) then the two angles add to \(181^{\circ}\) which is too large.
Any value of \(x\) larger than \(42\) will also have this problem, and so \(x = 41\) is the largest possible value of \(x\).
It is also possible to solve the inequality above using algebra! Think about how you can use the tools you have for solving equations to determine the value \(x=41\).