The triangle bar has equal length sides with equal side, So we first calculate the volume of square bar using below formula.
Calculate the Weight(Mass) of Triangular bar by multiplying the Volume (v) with Density(p) of Material.
By using below formula we can calculate the total price.