Top down game 1d aim offset?

ok let me try another way. check this:

so I believe all i need to do is to find the green angle:

how could I do this?