p: jamie is on the train.
q: sylvia is at the park.
r: nigel is in the car.
.
.
~p: jamie is not on the train
~q: sylvia is not at the park
~r: nigel is not in the car.
.
.
.
(~q^p)->~r
If (not q and p) then (not r)
Now just substitute,
If (sylvia is not at the park and jamie is on the train) then (nigel is not in the car)
.
.
.
p q ~p ~q (~q v ~p)
-----------------------------------
T T F F F
T F F T T
F T T F T
F F T T T