I have a good understanding of the basic SohCahToa trig functions, but this kinda stumped me, since I don't have two parts of the information that is needed, here is a example image: https://i.imgur.com/ljztgBm.png
I have though of several methods, such as using an angle function between H and X, and a few others, but all seem too hacky, if anyone has a better idea, I'd really appreciate it :-) least number of steps the better
If I had a guess, the answer would involve X and H being used to find the length of Y
known variables: A,X,H,P1-4, A is always vertical, the pink is always a rectangle
desired information: the length of Y, which is the width of the pink rectangle