Let ABC be an equilateral triangle. Draw AD⊥BC.
Length of AD= Perpendicular distance from A(2,−1) to the line x+y−2=0 =∣∣1+12−1−2∣∣=21
Since, △ABC is an equilateral triangle, so ∠ABC=60∘.
In △ABD, ⇒sin60∘=ABAD ⇒23=AB21 ⇒AB=23=21AB ⇒AB=32 unit
Since, △ABC is an equilateral triangle, so all sides are equal length. ∴ Length of AB= Length of BC= Length of CA=32