A numerator of a fraction is thrice of the denominator and plus 7. The fraction equals to 23. Find the value of x.