Finding J for Problem 3