All problems below use the public good game of the lecture notes, with one change: the utility function. Two individuals $i=1,2$ have incomes $w_1,w_2\gt 0$. Individual $i$ contributes $g_i$ to a public good and consumes the rest privately: $$x_i=w_i-g_i,\qquad G=g_1+g_2.$$ Each individual's utility is $$u_i(x_i,G)=\sqrt{x_i}+\sqrt{G}.$$
This is not the utility of the lecture-notes example, where $u_i(x_i,G)=x_i\cdot G$. We write $G_{-i}$ for the total contribution of everyone other than $i$; with two individuals, $G_{-1}=g_2$ and $G_{-2}=g_1$.
Substituting the budget, individual 1's utility as a function of the two contributions is $$u_1(g_1,g_2)=\sqrt{w_1-g_1}+\sqrt{g_1+g_2}.$$ Answer in Mathematica syntax, using the commands on the cheat sheet.
u1[g1_, g2_], keeping w1 as a symbol.Grad to write individual 1's first-order condition with respect to g1, and store it in foc.foc for g1.Take the total contribution of the others, $G_{-i}$, as given, and ignore the constraint $0\le g_i\le w_i$. Use Recipe #0.
Now the individuals contribute sequentially: individual 1 chooses $g_1$ first; individual 2 observes $g_1$ and then chooses $g_2$. The public good is not a flow—individual 1's contribution is still there when individual 2 contributes—so $G=g_1+g_2$. As in Problem 2, write payoffs as functions of the contributions only, $$u_i(g_1,g_2)=\sqrt{w_i-g_i}+\sqrt{g_1+g_2},$$ and ignore $0\le g_i\le w_i$.
Back to simultaneous contributions: both individuals choose at the same time. Use the best responses from Problem 2, and ignore $0\le g_i\le w_i$.
Return to the sequential game of Problem 3.
Now the agent receives the same income $w$ in every period and must choose a donation $g_t$ in every period. Assume there is only one agent and two periods, $t=0,1$. The agent cares about the stock of the public good: $G_0=g_0$ in period $0$ and $G_1=g_0+g_1$ in period $1$. The agent's utility in period $t$ is $$u_t=\sqrt{G_t}+\sqrt{x_t},\qquad x_t=w-g_t.$$ This is a different utility from the lecture-notes example, where $u_i=x_i\cdot G$. The agent discounts period-1 utility by the discount factor $\delta\in(0,1)$.
Return to the simultaneous game of Problem 4, now with the constraints $0\le g_i\le w_i$. Use Recipe #2.