Make tests pass in about_triangle_project.rb

Wrote method in triangle.rb to make the tests pass in about_triangle_project.rb.

Assignment complete.

[#75305786]