The correct option is D Maharashtra
An offshore oil drilling plant extracts petroleum from the land present underneath the sea. So, to have an offshore oil well, the state must have a coast. Out of the given states, Andhra Pradesh and Maharashtra have seashore and hence they have offshore oil wells.