This is about from Forster, Lectures on Riemann Surfaces, Exercise 8.1.
The exercise is the following: ($\mathcal{M}(X)$ represents the field of meromorphic functions on $X$, and likewise for $Y$.)
Suppose $X$ and $Y$ are compact Riemann surfaces such that $\mathcal{M}(X)$ and $\mathcal{M}(Y)$ are isomorphic as $\mathbb{C}$ algebras. Prove that $X$ and $Y$ are isomorphic.
There's a hint which suggests representing $X$ and $Y$ as the Riemann surfaces of algebraic functions of the same polynomial $P$ from $\mathcal{M}(\mathbb{P}^1)[T]$ and the fact (which is proved later) that the meromorphic functions separate points, over a compact Riemann surface.
To get started, it seems like I need a branched holomorphic covering map $\pi:X\to \mathbb{P}^1$. One candidate seems like using an arbitrary non constant element of $\mathcal{M}(X)$ and consider that as a surjective map into $\mathbb{P}^1$. However I'm not quite sure how to proceed. To that end I would be very grateful if someone could give me a hint where to start.
(I am aware that something along these lines has already been asked here If two meromorphic function fields on compact riemann surfaces isomorphic, then they are isomorphic, but it doesn't shed much light on how I might use the hint with whatever Forster has developed so far.)