This is more of an algebra question than a computer science question.
If you have a 45-degree RIGHT triangle, the angles are 45/45/90.
If you have any other 45-degree triangle, it contains at least one 45-degree angle. It may or may not contain a 30-degree angle, but this isn't required.