Rules Guy: What do you do when one hole is in your way on a shared green?

St Andrews shared green

What do the rules say about holes on a shared green?

Getty Images