Sharpe Ratio is defined as the slope of the line that is the return in function of the variance of a portfolio composed by a risky and a risky-less asset.
Hence, if you have a bunch of risky assets (A,B) and a risky-less (C) you simply calculate the efficient portfolio for your risky asset (A,B), and then calculate the Sharpe ratio for the tangential portfolio.
In other words the properties of the combination of A,B assets (given $x_A + x_B = 1$) are,
$$\mu_e = \mu_A x_A + \mu_B x_B = \mu_A x_A + \mu_B (1-x_A)=x_A(\mu_A - \mu_B)+\mu_B, $$
$$\sigma^2_e = \sigma^2_A x^2_A + \sigma^2_B x^2_B + \sigma_{AB}x_A x_B = x^2_A (\sigma^2_A+\sigma^2_B-2\sigma_{AB}) +2 x_A(\sigma_{AB} - \sigma^2_B) + \sigma^2_B,$$
with $mu$ the expected returns, and $\sigma^2$ the risks.
This results that when you consider the risk-free asset C in the mix you have
$$\mu_p = (1-x_e) r_f + x_e \mu_e = r_f + x_e(\mu_e-r_f),$$
with $r_f$ the risk-free return, in your case the 4% return of C.
The variance is given only by the risky part of the portfolio, therefore
$$\sigma^2_p = x^2_e \sigma^2_e,$$
from which one can conveniently define the weight to be given to the efficient portfolio as
$$x_e = \sigma_p / \sigma_e,$$
determining that
$$\mu_p = (1-x_e) r_f + x_e \mu_e = r_f + \frac{(\mu_e-r_f)}{\sigma_e}\sigma_p.$$
The angular coefficient of such line, telling us that one can tune the expected return on the volatility using the risk-free rate as buffer (and eventually shorting on it), is known as Sharpe Ratio,
$$\frac{(\mu_e-r_f)}{\sigma_e}.$$
If you substitute $\sigma_e$ and $\mu_e$ with the above given equations, you have the sharpe ratio in function of $x_A$ (or Wpa as you call it).
For this first assignment the Utility function is not needed, but I guess it will come handy later when it will ask to use it to calculate the desired weights.