The general term in the binomial expansion of (a+b)n is CRnan−RbR.
Thus, the general term in the expansion of (2xr+x21)10 is =CR10(2xr)10−R(x21)R
=CR10(210−Rxr(10−R))x−2R
Given, the constant term in the expansion is 180
⇒CR10⋅210−R=180…(1)
And (10−R)r−2R=0
⇒r=10−R2R
⇒r=10−R2(R−10)+10−R20
⇒r=−2+10−R20…(2)
Since R is positive integer less than or equal to 10 and r is also an integer, hence, the value of R is such that, 10−R must divide 20.
This is possible, when the value of 10−R can be one from the divisors of 20 i.e. 10−R can be from 1,2,4 or 5 and consequently, R can be 9,8,6 or 5 respectively.
But for R=9,6&5 equation (1) is not satisfied, hence R=8
as CR10210−R=180
⇒r=10−82×8=8.