num

public class num
{
        
        public static void main( String[] args )
{
            
            System.out.println( "Here are all numbers that add to 60 and thats difference is 14:" );
            System.out.println();
           
            for( int i=0; i<=60; i++ ) {
                
                for( int n=0; n<=60; n++ ) {
                    int c = n+i;
                    int d = n-i;
                    
                    if ( c == 60 ) {
                        if ( d == 14 ) {
                            System.out.println( "( " + n + ", " + i + " )" );
                        }
                    }
                }
            }
            
        }
    }
    
    

Picture of the output