solve dup