Let the common root be α.
Let β be the other root of 3x2−5x+p=0.
Let γ be the other root of 2x2−2x+q=0.
Using sum of roots:
α+β=35⟹β=35−α
α+γ=22=1⟹γ=1−α
β+γ=35−α+1−α
=38−2α⋯(∗)
Since α satisfies both equations:
3α2−5α+p=0⟹p=5α−3α2⋯(1)
2α2−2α+q=0⟹q=2α−2α2⋯(2)
Now, 38−p+23q
=38−(5α−3α2)+23(2α−2α2)
=38−5α+3α2+3α−3α2
=38−2α
This matches (∗).
Therefore, the sum of the other roots =38−p+23q