Putting when your PP's ball is in the hole

What happens if the hole is very shallow and the second ball 'holed' (my ball) is not fully beneath ground level - and I can't get the bottom ball out without removing my own ball? Can I mark my ball at the edge of the hole closest to the ball? I'd then lift it and remove my companions ball then place my ball back in the hole?

Yes - I know - convoluted and unlikely but just interested.
 
Top