Problems 13 and 19.

I shamelessly used VBA for 19.