Two sentenced for attempted murder, home invasion