Given,
The triangles with vertices A(2,1),B(0,0) and C(t,4),t=[0,4],
And the maximum and the minimum perimeters of such triangles are obtained at t=α and t=β respectively,
Now to minimise CA+CB, in below diagram take image of B in y=4,
We get, B′=(0,8)

Now finding, equation of AB′ we get,
y−8=2−7(x−0)
Now, putting y=4 in above equation we get,
−4=2−7(x)
⇒x=78⇒β=78
Now, maximum perimeter will be possible if α=0 or 4
Now taking α=0 we get,
AB=\sqrt{5},BC=4&AC=\sqrt{13}
Now when α=4 we get,
AB=\sqrt{5},BC=4\sqrt{2}&AC=\sqrt{13}
Now on comparing the perimeter we get, maximum perimeter at α=4
Hence, 6α+21β=48