Everything is green, so I can't tell what is is a player, what is a block, and what "2" means or is supposed to mean.
I did make you this, however:

The diagram can be mirrored and/or rotated and, with a tweak to the math, match any orientation of collider and collidee. Let me know if this isn't what you need and I'll try again.
These triangles are all in the same proportions; I think the left-most hollow point is a "collision point" so you are given the red, blue, and magenta for that small triangle. If you make blue twice as long, pink will be twice as long, etc.

