Here we have one basic to remember : Given a base r , any digit of a number in that base cannot be greater than (r-1).
Now lets first calculate the LHS expression which gives :
(2*4 + 2) + (1*32 + 1) - (2*5) = 20 - 10 = 10
Now we are given 2 terms in RHS.Lets first focus on 2nd term.Since only digit is mentioned i.e 4 in base 'x-1' , so minimum possible value of 'x-1' has to be 5 or 'x' to be 6 using the rule which was mentioned earlier.Now that we have only 1 digit 4 in the 2nd term so its value is going to be 4 only.
Hence the value of 1st term has to be 10 - 4 = 6
But if we use 6 in 1st term it is invalid since the base mentioned is 4 hence the max possible value of any digit is 3 for 1st term.
Hence , basically what we are left with is writing the 6 which is the decimal value into its corresponding base 4 value.So
(6)10 = (0110)2 = (12)4
Hence the value of 'x' is 12 and base of 4 which is 2nd term is 12 - 1 = 11